﻿using Core.Framework.Model.WebSockets;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.IBusiness.IPushModule.Model
{
    /// <summary>
    /// 运营信息广播
    /// </summary>
    public class BroadcastInfoModel : BaseBroadcastPush<BroadcastInfoContent>
    {

    }

    /// <summary>
    /// 消息内容
    /// </summary>
    public class BroadcastInfoContent
    {
        /// <summary>
        /// 消息类型
        /// </summary>
        public string Type { 
            get { 
                return "operate-info-broadcast"; 
            } 
        }

        /// <summary>
        /// 文章信息
        /// </summary>
        public List<BroadcastInfoItem> Infos { get; set; }
    }

    /// <summary>
    /// 运营消息模板
    /// </summary>
    public class BroadcastInfoItem
    {
        /// <summary>
        /// 关键字
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 文本信息
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// 展示图片
        /// </summary>
        public string Img { get; set; }
    }
}
